﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using service;

namespace Trathat
{
    public partial class SanphamTrathat : System.Web.UI.Page
    {
        string s = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            s = Request.QueryString["Nhom"];
            string tenloai = Request.QueryString["Ten"];
            string id = Request.QueryString["Loai"];
            if (s == "1")
                lnkNhom.Text = " > Trà cụ";
            else
                lnkNhom.Text = " > Trà";
            lblLoai.Text = " > " + tenloai;
            RadListView1.DataSource = new SanphamTrathatService().getListSanphamByLoai(Convert.ToInt64(id));
            RadListView1.DataBind();
        }

        protected void lnkNhom_Click(object sender, EventArgs e)
        {
            Response.Redirect("Nhomsanpham.aspx?Nhom=" + s);
        }
    }
}